/*
 * Copyright (C) 2017 Pingan, Inc. All Rights Reserved.
 */

package com.pingan.haofang.searchcloud.mail.dto;


import java.util.List;

public class MailDto<T> {

    /**
     * 模板名
     */
    private String templateName;

    /**
     * 邮件发送地址
     */
    private List<String> emailTo;

    /**
     * 邮件标题
     */
    private String subject;

    /**
     * 数据model
     */
    private T model;

    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public List<String> getEmailTo() {
        return emailTo;
    }

    public void setEmailTo(List<String> emailTo) {
        this.emailTo = emailTo;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public T getModel() {
        return model;
    }

    public void setModel(T model) {
        this.model = model;
    }

    @Override
    public String toString() {
        return "MailDto{" +
                "templateName='" + templateName + '\'' +
                ", emailTo=" + emailTo +
                ", subject='" + subject + '\'' +
                ", model=" + model +
                '}';
    }
}
